<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改货箱规格管理')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-spec-edit" th:object="${goodsBoxSpec}">
        <input name="id" th:field="*{id}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱类型编码：</label>
            <div class="col-sm-8">
                <input name="specCode" th:field="*{specCode}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱类型名称：</label>
            <div class="col-sm-8">
                <input name="specName" th:field="*{specName}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱长度：</label>
            <div class="col-sm-8">
                <input name="length" th:field="*{length}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱宽度：</label>
            <div class="col-sm-8">
                <input name="width" th:field="*{width}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱宽度：</label>
            <div class="col-sm-8">
                <input name="height" th:field="*{height}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱体积：</label>
            <div class="col-sm-8">
                <input name="volume" th:field="*{volume}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">货箱数占库位数：</label>
            <div class="col-sm-8">
                <input name="digitCapacity" th:field="*{digitCapacity}" class="form-control" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">备注：</label>
            <div class="col-sm-8">
                <input name="remark" th:field="*{remark}" class="form-control" type="text">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script th:inline="javascript">
    var prefix = ctx + "system/box/spec";
    $("#form-spec-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-spec-edit').serialize());
        }
    }
</script>
</body>
</html>